package com.geyue.core.mapper;

import com.geyue.common.repository.Mybatis;
import com.geyue.core.model.Business;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * Created by Lyon on 2017/3/24.
 */
@Mapper
public interface BusinessMapper extends Mybatis<Business> {

    List<Business> orderByTime(@Param("uid") Integer uid,@Param("year")Integer year,@Param("quarter")Integer quarter);

    List<Business> excel(@Param("start")Date start,@Param("end") Date end);

    List<Integer> receive(@Param("year")Integer year,@Param("quarter") Integer quarter,@Param("uid") Integer uid);

    List<Business> count(@Param("year")Integer year,@Param("quarter") Integer quarter,@Param("uid") Integer uid);

    Integer doIsGet(List<Integer> list);
}
